package com.appcheck.recording.action.impl;

import org.json.JSONException;
import org.json.JSONObject;

import com.appcheck.recording.action.AbstractAction;
import com.appcheck.recording.action.ActionConvert;
import com.appcheck.recording.handler.AbstractActionHandler;
import com.appcheck.recording.plugin.AbstractActionConverter;

public class KeyAction implements AbstractAction, ActionConvert {
	private int keyCode;
  
	public final String toString(){
		JSONObject localJSONObject = new JSONObject();
    try{
    	localJSONObject.put("class", "KeyAction");
    	localJSONObject.put("keyCode", this.keyCode);
    }catch (JSONException localJSONException) {}
    	return localJSONObject.toString();
	}
  
	public final int getKeyCode(){
		return this.keyCode;
	}
  
	public final void setKeyCode(int paramInt){
		this.keyCode = paramInt;
	}
 
	@Override
	public final boolean handle(AbstractActionHandler param) {
		return param.visit(this);
	}

	@Override
	public void toTestCode(AbstractActionConverter actionConverter) {

	}

}
